package com.zork.cmdb.webapi.domain.mapper;

import com.zork.cmdb.webapi.domain.dbo.UserDO;
import com.zork.cmdb.webapi.domain.dto.UserDTO;
import com.zork.cmdb.webapi.domain.vo.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenjh
 * @date 2018/5/11
 * @description
 */
@Mapper
public interface UserMapper {
    UserMapper MAPPER = Mappers.getMapper(UserMapper.class);
    UserDTO getDTO(UserDO userDO);
    List<UserDTO> getDTOList(List<UserDO> userDOList);
    UserVO getVO(UserDTO userDTO);
    List<UserVO> getVOList(List<UserDTO> userDTOList);
}
